package com.boardgame.gwt.service.operate.action.platcard;

import com.boardgame.gwt.finalinfo.CattleCardFinal;
import com.boardgame.gwt.finalinfo.SyntaxMatchFinal;

import java.util.regex.Pattern;

/**
 * 黑色卡牌
 */
public class PlayWhiteCardAction extends PlayCardAction {
    @Override
    protected int getGainCoin() {
        return 2;
    }

    @Override
    protected String getCardColor() {
        return CattleCardFinal.WHITE;
    }

    @Override
    public Pattern getPattern() {
        return Pattern.compile(SyntaxMatchFinal.PLAY_white_Card_ACTION);
    }

    public static PlayWhiteCardAction create(){
        return new PlayWhiteCardAction();
    }
}
